import nav1 from '../../assets/nav/nav1.png'
import nav2 from '../../assets/nav/nav2.png'
import nav3 from '../../assets/nav/nav3.png'

export const navigation = [
  {
    name: '首页',
    path: '/manage/index',
    children: [],
    icon: nav1
  },
  {
    name: '目标客户管理',
    path: '',
    icon: nav2,
    children: [
      {name: '标签管理', path: '/manage/clients/labels'},
      {name: '客户群管理', path: '/manage/clients/clients'}
    ]
  },
  {
    name: '营销活动管理',
    path: '',
    icon: nav3,
    children: [
      {name: '活动策划', path: '/manage/activities/plan'},
      {name: '活动审批', path: '/manage/activities/check'},
      {name: '流程编排', path: '/manage/activities/process'}
    ]
  }
]

function getKeyList(nav) {
  let list = []
  nav.forEach(item => {
    list.push(item.name)
  })
  return list
}

export const keyList = getKeyList(navigation)
